package com.qianyu.core.entity.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qianyu.core.entity.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
* 游戏大区
* @TableName tb_game_area
*/
@Data
@ApiModel(value = "游戏大区")
@TableName("tb_game_area")
@AllArgsConstructor
@NoArgsConstructor
public class GameArea extends BaseBean {


    /**
    * 大区名
    */
    @NotBlank(message="[大区名]不能为空")
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("大区名")
    private String area;
    /**
    * 大区id
    */
    @NotNull(message="[大区id]不能为空")
    @ApiModelProperty("大区id")
    private Integer areaId;
    /**
    * Appid
    */
    @NotBlank(message="[Appid]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("Appid")
    private String appid;
    /**
    * 类型:0=Android,1=Ios
    */
    @NotNull(message="[类型:0=Android,1=Ios]不能为空")
    @ApiModelProperty("类型:0=Android,1=Ios")
    private Integer type;
    /**
    * 状态:0=隐藏,1=正常
    */
    @NotNull(message="[状态:0=隐藏,1=正常]不能为空")
    @ApiModelProperty("状态:0=隐藏,1=正常")
    private Integer status;

}
